<?php
namespace app\index\model;
use think\Model;
Class PicDataModel extends Model
{
	protected $table = 'pic_data';
    protected $pk = 'id';
    
    public function insert_data($post){
    	$org = $cdate = '';
        extract($post);
    	//如果全部正确,执行写入数据
    	$data = array(
    			"org" => $org,
    			"cdate" => time()
    	);
    	$r=$this->insertGetId($data);
    	return $r;
    }

}